package com.zq.service.impl;

import com.zq.dao.UserDao;
import com.zq.dao.impl.UserDaoImpl;
import com.zq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 用户service接口
 */
//@Component("userService")
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    /**
     * 添加用户
     */
    @Override
    public void saveUser() {
        userDao.saveUser();
    }
}
